package xmlsync2;
import java.util.Enumeration;

import javax.servlet.http.HttpServletRequest;

import org.apache.log4j.Logger;

import datawave.util.LoggerCache;
public class XmlGate
{
	private static Logger log = LoggerCache.get(Synchronizer.class.getName());
	public void buildxml(xmlsync2.Sync oSync, HttpServletRequest req)
		throws XmlsyncException
	{
		Enumeration enum1 = req.getParameterNames();
		
		String name = "";
		String value = "";
		int i = 1;
		while (enum1.hasMoreElements())
		{
			name = (String) enum1.nextElement();
			value = (String) req.getParameter(name);
			if (name.indexOf("/") > -1)
				oSync.set(name, value.trim());
			i++;
		}
	}
} //XmlGate